﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace QMIM
{
    /// <summary>
    /// 登陆类型：QQ还是MSN
    /// </summary>
    public enum LoginType
    {
        QQ = 0,
        MSN = 1
    };

    /// <summary>
    /// 全局变量
    /// </summary>
    public class Global
    {
        /// <summary>
        /// 登陆类型：QQ还是MSN
        /// </summary>
        public static LoginType loginType;

        /// <summary>
        /// 当前程序的使用的类型：QQ还是MSN
        /// </summary>
        public static LoginType curType;
        
        /// <summary>
        /// 标识是否登陆
        /// </summary>
        public static bool IsLogin;

        /// <summary>
        /// 登陆窗口引用
        /// </summary>
        public static Form loginForm;

        /// <summary>
        /// QQ主窗口引用
        /// </summary>
        public static QQForm qqForm;

        /// <summary>
        /// MSN主窗口引用
        /// </summary>
        public static MSNForm msnForm;


        static Global()
        {
            loginType = LoginType.QQ;
            IsLogin = false;
            loginForm = null;
            qqForm = null;
            msnForm = null;
        }

    }
}
